package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

    /**
     * 计算营业额数据
     * @param startDate
     * @param endDate
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate startDate, LocalDate endDate);

    /**
     * 计算用户数据
     * @param startDate
     * @param endDate
     * @return
     */
    UserReportVO getUserStatistics(LocalDate startDate, LocalDate endDate);

    /**
     * 订单数据统计
     * @param startDate
     * @param endDate
     * @return
     */
    OrderReportVO getOrderStatistics(LocalDate startDate, LocalDate endDate);

    /**
     * 销量前十统计
     * @param startDate
     * @param endDate
     * @return
     */
    SalesTop10ReportVO getSalesTop10Statistics(LocalDate startDate, LocalDate endDate);

    /**
     * 导出运营数据报表
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);
}
